package src.lab02.test19;

/**
 * Created by 林云志 on 2017/10/27.
 */
public class Test {
    public static void main(String[] args) {

        //19、 	编写一个程序，实现字符串的大小写转换并倒序输出，如输入为“HelloWord”，输出为“DROwOLLEH”。

        String result = "HelloWord";
        StringBuffer stringBuffer =new StringBuffer();


        for (int i = 0; i< result.length();i++){
            char result1 [] = new char[result.length()];
            result1[i] = result.charAt(result.length()-1-i);

            stringBuffer.append(result1[i]);

        }

        System.out.println(stringBuffer.toString());
    }
}
